package com.crm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.DTO.BusinessAssignDto;
import com.crm.DTO.BusinessDto;
import com.crm.DTO.BusinessFollowDto;
import com.crm.common.result.ResultVO;
import com.crm.common.result.TableDataInfo;
import com.crm.entity.Business;
import com.crm.vo.BusinessFollowVo;

import java.util.List;

public interface BusinessService extends IService<Business> {


    /**
     * 商机列表
     *
     * @param businessDto
     * @return
     */
    TableDataInfo<Business> searchBusiness(BusinessDto businessDto);

    /**
     * 新增商机
     *
     * @param business
     * @return
     */


    boolean saveBusiness(Business business);

    /**
     * 查询公海池
     *
     * @param businessDto
     * @return
     */
    TableDataInfo<Business> getBusiness(BusinessDto businessDto);


    /**
     * 查询商机跟进记录
     *
     * @param businessId
     * @return
     */
    List<BusinessFollowVo> getBusinessFollowList(Long businessId);


    /**
     * 新增商机跟进记录
     *
     * @param dto
     */
    void addBusinessRecord(BusinessFollowDto dto);


    /**
     * 商机分配
     *
     * @param businessAssignDto
     */
    void AllocationBusiness(BusinessAssignDto businessAssignDto);
    /**
     * 分配
     * @param ownerId    现在的负责人ID
     * @param transferId 要分配的用户ID
     * @return
     */
    void assignment(Long ownerId, Long transferId);
}
